package com.zhuo.common.helper;

import com.zhuo.common.domain.storage.UploadResult;

/**
 * @author 卓东东
 * @description: UploadResult构造器
 * @since 2025/10/11
 */
public class UploadResultHelper {

    public static UploadResult buildSuccessUpload(String key, String url, String fileName, String bucket) {
        UploadResult uploadResult = new UploadResult();

        uploadResult.setSuccess(true);
        uploadResult.setKey(key);
        uploadResult.setUrl(url);
        uploadResult.setOriginalFileName(fileName);
        uploadResult.setBucket(bucket);

        return uploadResult;
    }

}
